home *** CD-ROM | disk | FTP | other *** search
- // Count down JavaScript
- // Create one text box called time and set it's initial value to 1 higher than what you want the viewer to see as it's initial value
- // In the onload event in the body tag, put the line "reduce()"
-
- function reduce()
- {
- if(time.value != 0)
- {
- time.value=time.value-1;
- window.setTimeout("reduce()", "1000");
- }
- else window.clearTimeout;
- }